package examples.config.redis;

import org.springframework.context.annotation.Configuration;

/**
 * @author wenxy
 * @create 2020-05-24 024
 */
@Configuration
public class RedisCacheConfig {
/*
    @Bean
    public RedisTemplate redisTemplate(){
        return new RedisTemplate();
    }
    
    @Bean
    public RedisConnectionFactory redisConnectionFactory(){
        return new LettuceConnectionFactory();
    }
    
    public RedisCacheManager redisCacheManager(){
        RedisCacheConfiguration redisCacheConfiguration = RedisCacheConfiguration.defaultCacheConfig();
        RedisCacheManager redisCacheManager = RedisCacheManager.builder()
                .cacheDefaults(redisCacheConfiguration)
                .transactionAware()
                .build();
        return redisCacheManager;
    }*/
    
}
